package com.youdoneed.news.news.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.youdoneed.news.news.entity.CmfPostsReadlog;

import java.util.List;

@Mapper
public interface CmfPostsReadlogMapper {
    int deleteByPrimaryKey(String postsReadlogId);

	int insert(CmfPostsReadlog record);

	int insertSelective(CmfPostsReadlog record);

	CmfPostsReadlog selectByPrimaryKey(String postsReadlogId);

	int updateByPrimaryKeySelective(CmfPostsReadlog record);

	int updateByPrimaryKey(CmfPostsReadlog record);
	
	/**
	 * 获取浏览记录
	 */
	List<CmfPostsReadlog> getReadLog(@Param("userId")String userId, @Param("postId")Long postId);
    
}